package service;

import java.util.List;

import dao.WorkingMapper;
import entity.Working;
import util.MybatisUtil;

public class WorkingService {

	WorkingMapper workingMapper = MybatisUtil.createSqlSession().getMapper(WorkingMapper.class);
	
	public List<Working> getList(){
		return workingMapper.getList();
	}
	
	public int getCount(String title){
		return workingMapper.getCount(title);
	}
	
	public Working getWorking(int id){
		return workingMapper.getWorking(id);
	}
	
	public int save(Working w){
		return workingMapper.save(w);
	}

}
